<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:pou="http://primefaces.org/ui"
      xmlns:h="http://java.sun.com/jsf/html">
    <h:head >
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <title>LABORATORIO VIDES</title>
    </h:head>
    <h:body >
        <pou:layout fullPage="true">
            <pou:layoutUnit position="north" size="165" style="background: #999999">
                <h:panelGrid columns="2" >
                    <pou:graphicImage value="/resources/images/logo_lab2.png" style="display: block;  margin-left: 35%; margin-top: 3% "/>
                    <h:outputText value="SISTEMA DE CONTROL Y DISTRIBUCION DE VISITADORES MÉDICOS"  style="display: block; text-align: center; font-size: 17px; font-weight: bold; color: black; margin-left: 400px"/>
                </h:panelGrid>
            </pou:layoutUnit>
            <pou:layoutUnit position="center">
                <h:form>
                    <pou:panel id="acceso" header="Acceso de Usuario"  style="position:absolute; margin-left:41.5%; margin-top:10%">
                        <h:panelGrid columns="3">
                            <h:outputLabel for="usuario" value="Usuario" />
                            <pou:inputText id="usuario" label="Usuario" required="true"
                                           value="#{sessionController.idUsuario}"/>
                            <pou:message for="usuario" display="icon" showDetail="false"/>

                            <h:outputLabel for="contrasena" value="Contraseña" />
                            <pou:password id="contrasena" label="Contrasena"
                                          required="true"
                                          value="#{sessionController.passUsuario}"/>
                            <pou:message for="contrasena" display="icon" showDetail="false"/>

                            <pou:commandButton value="Ingresar" action="#{sessionController.login}" ajax="false"/> 
                        </h:panelGrid>
                        <div id="error">
                            <pou:messages showDetail="false"/>
                        </div>
                    </pou:panel>

                </h:form>
            </pou:layoutUnit>
            <pou:layoutUnit id="footer" position="south" size="35">
                <h:form>
                    <h:outputText value="Copyright © 2012 | LABORATORIOS VALDES S.A DE C.V "  style="display: block; text-align: center;"/>
                </h:form>
            </pou:layoutUnit>
        </pou:layout>
    </h:body>

</html>

